package com.sample.core.events
{
	import flash.events.Event;
	
	public class PageContainerEvent extends flash.events.Event
	{
		public static const LOADING_BEGIN:String = "loadingBegin";
		public static const LOADING_END:String = "loadingEnd";
		
		public var loadingMessage:String;
		
		public function PageContainerEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			 super(type, bubbles, cancelable);
		}
		
		public static function loadingBegin(message:String):PageContainerEvent
		{
			var e:PageContainerEvent = new PageContainerEvent(PageContainerEvent.LOADING_BEGIN);
			e.loadingMessage = message;
			return e;
		}
	}
}